<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
    {include file='admin_src.html'}
</head>
<body>
<div class="col-md-12" id="app">
    <div class="col-md-12" >
        <div class="col-md-12 left-h" >机器人数据 &nbsp;&nbsp;<span style="color: green;font-size: 0.6em;float: right;margin-right: 50px">{{isRobotSearch}}</span></div>
        <div class="col-md-2 app-data-num">
            <span>机器人总数:<span style="font-size: 20px;font-weight: bold">{{robotList.robot_count}}</span>&nbsp;台</span>
        </div>
        <div class="col-md-2  app-data-num">
            <span>在线机器人:<span style="font-size: 20px;font-weight: bold">{{robotList.robot_start}}</span>&nbsp;台</span>
        </div>
        <div class="col-md-2  app-data-num">
            <span>微信好友数量:<span style="font-size: 20px;font-weight: bold">{{robotList.friend}}</span>&nbsp;个</span>
        </div>
        <div class="col-md-2  app-data-num">
            <span>微信群数量:<span style="font-size: 20px;font-weight: bold">{{robotList.group}}</span>&nbsp;个</span>
        </div>
    </div>
<!--    <div class="col-md-12" style="margin-top: 30px">-->
<!--        <div class="col-md-12 left-h">订单数据</div>-->
<!--        <div class="col-md-2 app-data-num">-->
<!--            <span>总订单:<span style="font-size: 20px;font-weight: bold">1567</span>单</span>-->
<!--        </div>-->
<!--        <div class="col-md-2  app-data-num">-->
<!--            <span>未支付订单:<span style="font-size: 20px;font-weight: bold">354</span>单</span>-->
<!--        </div>-->
<!--        <div class="col-md-2  app-data-num">-->
<!--            <span>已支付订单:<span style="font-size: 20px;font-weight: bold">6874</span>单</span>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="col-md-12" style="margin-top: 30px">-->
<!--        <div class="col-md-12 left-h">流水数据</div>-->
<!--        <div class="col-md-2 app-data-num">-->
<!--            <span>总金额:<span style="font-size: 20px;font-weight: bold">8741.00</span>元</span>-->
<!--        </div>-->
<!--        <div class="col-md-2  app-data-num">-->
<!--            <span>未支付金额:<span style="font-size: 20px;font-weight: bold">354.00</span>元</span>-->
<!--        </div>-->
<!--        <div class="col-md-2  app-data-num">-->
<!--            <span>已支付金额:<span style="font-size: 20px;font-weight: bold">6874.00</span>元</span>-->
<!--        </div>-->
<!--    </div>-->
    <div class="col-md-12" style="margin-top: 30px">
        <div class="col-md-12 left-h">聊天数据</div>
        <div class="col-md-2 app-data-num">
            <span>今日加好友数:<span style="font-size: 20px;font-weight: bold">126</span>个</span>
        </div>
        <div class="col-md-2  app-data-num">
            <span>今日邀请进群:<span style="font-size: 20px;font-weight: bold">24</span>个</span>
        </div>
        <div class="col-md-2  app-data-num">
            <span>总加好友数：<span style="font-size: 20px;font-weight: bold">7414</span>个</span>
        </div>
        <div class="col-md-2  app-data-num">
            <span>总邀请进群：<span style="font-size: 20px;font-weight: bold">6571</span>个</span>
        </div>
    </div>
<!--    <div class="col-md-12" style="margin-top: 30px">-->
<!--        <div class="col-md-12 left-h">官网提交数据</div>-->
<!--        <div class="col-md-2 app-data-num">-->
<!--            <span>今日提交:<span style="font-size: 20px;font-weight: bold">45</span>个</span>-->
<!--        </div>-->
<!--        <div class="col-md-2  app-data-num">-->
<!--            <span>总提交:<span style="font-size: 20px;font-weight: bold">781</span>个</span>-->
<!--        </div>-->
<!--        <div class="col-md-2  app-data-num">-->
<!--            <span>已处理：<span style="font-size: 20px;font-weight: bold">700</span>个</span>-->
<!--        </div>-->
<!--        <div class="col-md-2  app-data-num">-->
<!--            <span>未处理：<span style="font-size: 20px;font-weight: bold">81</span>个</span>-->
<!--        </div>-->
<!--    </div>-->
</div>
</body>
<script>
    var app = new Vue({
        el: '#app',
        data:function() {
            return {
                robotList:[],
                isRobotSearch:'查询中。。。',
            }
        },
        mounted:function(){
            this.getData()
        },
        methods:{
            resetInput:function (){
                this.username = '';
                this.password = '';
            },
            getData:function (){
                var that = this;

                apiRequest(adminApi.Index.getData,{},function (ret){
                    that.robotList = ret;
                    that.isRobotSearch = '刷新成功';
                })

            }
        }
    })
</script>
</html>